<script setup lang="ts">
import { ref } from 'vue'
import type { Ref } from 'vue'

defineProps<{ title: string }>()

const count: Ref<number> = ref(0)
</script>

<template>
    <div class="dialog_box">
        <h1>{{ title }}</h1>

        <div class="card">
            <button type="button" @click="count++">count is {{ count }}</button>
            <p>
                Edit
                <code>components/DemoDialogBox.vue</code> to test HMR
            </p>
        </div>

        <p>
            Check out
            <a href="https://vuejs.org/guide/quick-start.html#local" target="_blank"
            >create-vue</a
            >, the official Vue + Vite starter
        </p>
        <p>
            Install
            <a href="https://github.com/johnsoncodehk/volar" target="_blank">Volar</a>
            in your IDE for a better DX
        </p>
    </div>
</template>

<style scoped>
.dialog_box {
    margin: 2px;
    border: solid 1px black;
}
</style>
